//
// Created by 吴喆 on 2020/3/5.
//

#include "GameObject.h"
#include "ResourceManager.h"
#include "../game/SpriteRender.h"

void GameObject::initGameObject() {
    GameObject::size = glm::vec2(1, 1);
    initRenderer();
}

void GameObject::initRenderer() {
    renderer = new SpriteRenderer(ResourceManager::getShader("test"));
}
